QueryDefinition.SortRenderedRows Method

Sorts list of rows, where each row consists of an array of RenderedCell objects.

Parent Type: QueryDefinition

Namespace: Microsoft.SharePointLearningKit

Assembly: Microsoft.SharePointLearningKit.dll

Syntax
C#

public static void SortRenderedRows (
IList<RenderedCell[]> renderedRows,
int columnIndex,
bool ascending

)

Parameters

renderedRows

A list of RenderedCell arrays to sort.

columnIndex

The zero-based index of the column to sort on.

ascending

true for an ascending sort, false for a descending sort.

Exceptions
Exception type Condition
ArgumentException

columnIndex is greater than or equal to the length of a row in renderedRows.

InvalidOperationException

The column being sorted on is of a type that does not implement IComparable. (Note that columns of type LearningStoreItemIdentifier can be sorted on.) renderedRows.